package com.qianda.qdminiapp;

import com.qianda.qdminiapp.common.exception.ExceptionCode;
import com.qianda.qdminiapp.common.exception.SimpleException;
import com.qianda.qdminiapp.controller.Result;
import com.qianda.qdminiapp.security.InvalidTokenException;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestControllerAdvice;

import javax.servlet.http.HttpServletRequest;


@MapperScan("com.qianda.qdminiapp.dao.*")
@SpringBootApplication
public class QdMiniappApplication {

    public static void main(String[] args) {
        SpringApplication.run(QdMiniappApplication.class, args);
    }

}
